home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc / OpenDoc Development / Debugging Support / OpenDoc™ Source Code / Dialogs / DlgsInit.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-08-28  |  946 b   |  56 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        DlgsInit.cpp
  3.  
  4.     Contains:    Init routines for the Dialogs library
  5.  
  6.     Owned by:    Eric House
  7.  
  8.     Copyright:    © 1994 - 1996 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.  
  12.          <2>     6/21/96    eeh        task 10008: add buttons etc. for AppleGuide
  13.          <1>     6/7/96    eeh        first checked in
  14.  
  15.     To Do:
  16.     In Progress:
  17.         
  18. */
  19.  
  20.  
  21. #include <som.xh>
  22. #include <somobj.xh>
  23.  
  24. #ifndef _USERSRCM_
  25. #include <UseRsrcM.h>
  26. #endif
  27.  
  28. #ifndef _ODMEMORY_
  29. #include <ODMemory.h>
  30. #endif
  31.  
  32. #ifndef _AGSUPPORT_
  33. #include "AGSupprt.h"
  34. #endif
  35.  
  36. extern "C" pascal OSErr DraftWindowCFMInit( CFragInitBlockPtr );
  37.  
  38. pascal OSErr DraftWindowCFMInit (CFragInitBlockPtr initBlkPtr)
  39. {
  40.     OSErr err = InitODMemory();
  41.     if ( err == noErr )
  42.     {
  43.         InitLibraryResources(initBlkPtr);
  44.         InitAppleGuideSupport();
  45.     }
  46.     return err;
  47. }
  48.  
  49. extern "C" pascal void DraftWindowCFMTerminate();
  50.  
  51. pascal void DraftWindowCFMTerminate ()
  52. {
  53.     TakedownAppleGuideSupport();
  54.     CloseLibraryResources();
  55. }
  56.